﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FJERP.BLL;
using FJERP.Model;

namespace FJERP.Handler
{
    /// <summary>
    /// HandlerAdd 的摘要说明
    /// </summary>
    public class HandlerAdd : IHttpHandler
    {
        MemberCardBLL bll = new MemberCardBLL();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            MemberCard m = new MemberCard();
            m.MemberCard_Cnum = context.Request["MemberCard_Cnum"];
            m.MemberCard_CardID = context.Request["MemberCard_CardID"];
            m.MemberCard_ingeral = Convert.ToInt32(context.Request["MemberCard_ingeral"]);
            m.MemberCard_Name = context.Request["MemberCard_Name"];
            m.MemberCard_owner = context.Request["MemberCard_owner"];
            m.MemberCard_sphere = Convert.ToDecimal(context.Request["MemberCard_sphere"]);
            m.Rank_Name = context.Request["Rank_Name"];
            m.MemberCard_State =Convert.ToInt32( context.Request["MemberCard_State"]);
            context.Response.Write(bll.MenBerCardAdd(m));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}